package entity

import "time"

type User struct {
	ID        uint   `json:"id" gorm:"primaryKey"`
	NickName  string `json:"nick_name"  validate:"min=6,max=20" gorm:"unique;not null;comment:'用户昵称'"`
	Email     string `json:"email"  validate:"email" binding:"required" gorm:"not null;unique;comment:'用户邮箱'"`
	Password  string `json:"password"  validate:"required" gorm:"not null;comment:'用户密码'"`
	CreatedAt time.Time
	UpdatedAt time.Time
}
